package com.neusoft.neuiotms.dcvm.task.cmdbSyn.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.neusoft.neuiotms.dcvm.task.cmdbSyn.service.ItSynApiService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api("模拟接口")
@RestController
@RequestMapping(value = "/api/w/syn/mocks")
public class MockSynController {

    @Autowired
    private ItSynApiService mockService;

    @ApiOperation("查询所有设备模拟接口")
    @GetMapping("/devices")
    public JSONObject searchDevices() {
        return this.mockService.getMockItDevicesData();
    }

    @ApiOperation("查询所有机柜模拟接口")
    @GetMapping("/racks")
    public JSONObject searchRacks() {
        return this.mockService.getMockRackListData();
    }

}
